﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;
using WSDLGenerator;
using WSDLParser;
using System.Diagnostics;
using AssemblyProvider.Web;

namespace WSDLTester
{
    class Program
    {
        static void Main(string[] args)
        {
            var generator = new PackageGenerator();
            var assemblyProviderService = new AssemblyProviderService();
            var root = assemblyProviderService.GetAssembliesRoot();
            var assembly = root.Assemblies.First();
            var type = assembly.Types.First();

            generator.GenerateFromElement(type);

            var stream = File.OpenRead(@"..\..\Amazon.xml");
            var url = "http://localhost:5998/Services/SolutionFramework-Service-CodeGenerationPipelineDomainService.svc?wsdl";

            //var parser = new WebServiceInfo(new Uri(url));

            var parser = new Parser(stream);
        }
    }
}
